﻿<?php
//include_once('addons/services/PassportService.class.php');
import('Think.Services.PassportService');
class IndexAction extends BaseAction
{
    public function _initialize() {
        $pid=Session::get('p_id');
    	if(empty($pid)){
          $this->redirect('Public/login');
        //  $this->error("请先登陆");  $pid
        }
	}
      public function index()
    
    {
     //   header("Location:Public/login");
        $this->redirect('Public/login');
    }
      /**
    +----------------------------------------------------------
    * 探针模式
    +----------------------------------------------------------
    */
    public function checkEnv()
    {
        load('pointer',THINK_PATH.'/Tpl/Autoindex');//载入探针函数
        $env_table = check_env();//根据当前函数获取当前环境
        echo $env_table;
    } 
  
}
?>